package com.robertux.leaderboard.util;

import org.apache.log4j.Logger;


public abstract class FileContentHandler {
	private String pageToReturn;
	private String[] mappingColumns;
	protected Logger logger;

	protected FileContentHandler(String pageToReturn, String[] mappingColumns) {
		this.pageToReturn = pageToReturn;
		this.mappingColumns = mappingColumns;
		this.logger = Logger.getLogger(this.getClass());
	}
	
	public abstract String[] handleFileContent(String[][] fileContent, String[] discardedRows, String[] mappedColumns);

	public String getPageToReturn() {
		return pageToReturn;
	}

	public void setPageToReturn(String pageToReturn) {
		this.pageToReturn = pageToReturn;
	}

	public String[] getMappingColumns() {
		return mappingColumns;
	}

	public void setMappingColumns(String[] mappingColumns) {
		this.mappingColumns = mappingColumns;
	}
}
